package cn.iocoder.yudao.module.reading.controller.app.recordings.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 用户录制音频创建请求 VO
 *
 * @author 李晨
 */
@Schema(description = "用户录制音频创建请求 VO")
@Data
public class UserRecordingCreateReqVO {

    @Schema(description = "绘本ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    @NotNull(message = "绘本ID不能为空")
    private Long bookId;

    @Schema(description = "页面编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "页面编号不能为空")
    private Integer pageNumber;

    @Schema(description = "音频URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://example.com/user-audio.mp3")
    @NotNull(message = "音频URL不能为空")
    private String audioUrl;

    @Schema(description = "时长（秒）", requiredMode = Schema.RequiredMode.REQUIRED, example = "150")
    @NotNull(message = "时长不能为空")
    private Integer duration;

    @Schema(description = "录制质量", example = "high")
    private String recordingQuality;

}
